package day.day01;

import java.util.Random;

//变量：存储数据的盒子。一次定义多处使用
public class Square {
    public static void main(String[] args) {
        int a,b;
        Random rand = new Random();
        a = rand.nextInt(100);
        b = rand.nextInt(100);
        System.out.println("矩形边长分别是："+a+" "+b);
        System.out.println("矩形周长是："+2*(a+b));
        System.out.println("矩形面积是："+a*b);

    }
}
